package com.zzq.controller.v2;


import com.zzq.service.ModelSquareService;
import com.zzq.square.DeploymentBo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("test")
@RestController
@Slf4j
public class TestController {

    @Autowired
    private ModelSquareService modelSquareService;

    @PostMapping("/createLargeModel")
    public String createDeployment(@RequestBody DeploymentBo deploymentBo){
        String clusterId = "1";
        modelSquareService.importModelInfo(clusterId,deploymentBo);
        return "success";
    }
}
